package com.jic.market.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.market.entity.MyBargain;
import com.jic.market.request.rest.bargain.MyBargainQueryRestRequest;
import com.jic.market.request.rest.bargain.MyBargainRestRequest;
import com.jic.market.request.rest.bargain.ProductBargainRestRequest;
import com.jic.market.response.rest.bargain.MyBargainRestResponse;
import com.jic.market.response.rest.bargain.ProductBargainRestResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 我的砍价商品表
 * @author : 
 * @email : 
 * @since : 2020-09-10 06:20:01
 * @version : v1.0.0
 */
@Mapper
public interface PromotionMyBargainMapper {

    long insert(MyBargain myBargain);

    long delete(Long id);

    long update(MyBargain myBargain);

    MyBargain queryByPrimaryKey(Long id);

    List<MyBargain> query(MyBargain myBargain);

    List<MyBargain> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("myBargain") MyBargain myBargain);

    long queryPageCount(MyBargain myBargain);


    List<MyBargainRestResponse> listRestPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("myBargainRestRequest") MyBargainQueryRestRequest myBargainRestRequest);

    long listRestPageCount(MyBargainQueryRestRequest myBargainRestRequest);
}